// 教师板块
import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';
import { RoleEnum } from '/@/enums/roleEnum';

const student: AppRouteModule = {
  path: '/student',
  name: 'Student',
  component: LAYOUT,
  redirect: '/student/index',
  meta: {
    orderNo: 3,
    icon: 'ion:grid-outline',
    title: t('routes.student.student.module'),
    // roles: [RoleEnum.SUPER, RoleEnum.STUDENT_ADMIN, RoleEnum.STUDENT, RoleEnum.TEST],
    roles: [RoleEnum.SUPER, RoleEnum.STUDENT_ADMIN, RoleEnum.STUDENT, RoleEnum.TEST],
    hideChildrenInMenu: false,
  },
  children: [
    // 学生管理
    {
      path: 'index',
      name: 'Student',
      component: () => import('/@/views/student/index.vue'),
      meta: {
        // affix: true,
        title: t('routes.student.student.student'),
      },
    },
    // 学生社团
    {
      path: 'studentgroup',
      name: 'StudentGroup',
      component: () => import('/@/views/student/dept.vue'),
      meta: {
        // affix: true,
        title: t('routes.student.student.studentGroup'),
      },
    },
    // 社联动态
    {
      path: 'social',
      name: 'Social',
      component: () => import('/@/views/student/social.vue'),
      meta: {
        // affix: true,
        title: t('routes.student.student.social'),
      },
    },
    // 校园风采
    {
      path: 'wonderful',
      name: 'Wonderful',
      component: () => import('/@/views/student/wonderful.vue'),
      meta: {
        // affix: true,
        title: t('routes.student.student.wonderful'),
      },
    },
    //game
    {
      path: 'PublishedArticles',
      name: 'PublishedArticles',
      component: () => import('/@/views/student/PublishedArticles.vue'),
      meta: {
        title: t('routes.student.student.PublishedArticles'),
      },
    },
    {
      path: 'essay',
      name: 'essay',
      component: () => import('/@/views/student/essay.vue'),
      meta: {
        title: t('routes.student.student.test'),
      },
    },
    {
      path: 'look',
      name: 'look',
      component: () => import('/@/views/student/look.vue'),
      meta: {
        title: t('routes.student.student.look'),
      }
    },
    {
      path: 'flatDetail',
      name: 'BreadcrumbFlatDetailDemo',
      component: () => import('/@/views/demo/feat/breadcrumb/FlatListDetail.vue'),
      meta: {
        title: t('routes.demo.feat.breadcrumbFlatDetail'),
        hideMenu: true,
        hideTab: true,
        currentActiveMenu: '/feat/breadcrumb/flat',
      },
    },
  ],
};

export default student;
